package org.example.chat.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.lang.Long;
import java.sql.Timestamp;
import java.lang.String;
import java.lang.Integer;

/**
 * 群组成员表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Table(value = "chat_group_member", dataSource = "chatDS")
public class ChatGroupMemberEntity {

    /**
     * 自增主键
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 群组ID
     */
    @Column(value = "group_id")
    private String groupId;

    /**
     * 用户ID
     */
    @Column(value = "user_id")
    private String userId;

    /**
     * 角色：0-成员, 1-管理员
     */
    @Column(value = "role")
    private Integer role;

    /**
     * 加入时间
     */
    @Column(value = "join_time")
    private Timestamp joinTime;

    /**
     * 是否被禁言：0-否, 1-是
     */
    @Column(value = "muted")
    private Integer muted;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Timestamp getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(Timestamp joinTime) {
        this.joinTime = joinTime;
    }

    public Integer getMuted() {
        return muted;
    }

    public void setMuted(Integer muted) {
        this.muted = muted;
    }
}
